<{extends file="../layout.html"}>
<{block name="content"}>
<div class="aw-container-wrap">
    <div class="container aw-publish">
        <div class="row">
            <div class="aw-content-wrap clearfix">
                <div class="col-sm-12 col-md-9 aw-main-content">
                    <!-- tab 切换 -->
                    <ul class="nav nav-tabs aw-nav-tabs active">
                        <li><a href="http://localhost/wecenter/add.html?/publish/article/">文章</a></li>
                        <li class="active"><a href="http://localhost/wecenter/add.html?/publish/">问题</a></li>
                        <h2 class="hidden-xs"><i class="icon icon-ask"></i> 发起</h2>
                    </ul>
                    <!-- end tab 切换 -->
                    <form  id="question_form" method="post" action="index.php?m=home&c=Question&a=addHandle">
                        <select id="category_id" class="hide" name="category_id">
                            <option value="0">- 请选择分类 -</option>
                            <option value="1">默认分类</option><option value="2">PHP</option><option value="3">前端</option><option value="4">Java</option><option value="5">UI</option><option value="6">生活</option><option value="8">iOS</option><option value="9">安卓</option><option value="10">设计</option><option value="13">MySQL</option><option value="14">Linux</option>						</select>
                        <div class="aw-mod aw-mod-publish">
                            <div class="mod-body">
                                <h3>问题标题:</h3>
                                <!-- 问题标题 -->
                                <div class="aw-publish-title">
                                    <div>
                                        <input type="text" class="form-control" value="" id="question_contents" name="question_content" placeholder="问题标题...">
                                        <div class="aw-publish-suggest-question hide">
                                            <p class="text-color-999">你的问题可能已经有答案</p>
                                            <ul class="aw-dropdown-list">
                                            </ul>
                                        </div>
                                    </div>
                                    <div class="dropdown">
                                        <!--<div data-toggle="dropdown" class="dropdown-toggle">-->
                                        <!--<span class="aw-hide-txt" id="aw-topic-tags-select">选择分类</span>-->
                                        <!--<a href="javascript:;"><i class="icon icon-down"></i></a>-->
                                        <!--</div>-->
                                        <!--<div class="aw-dropdown" role="menu" aria-labelledby="dropdownMenu">-->
                                        <select name="" id="">
                                            <option value="0">默认分类</option>
                                            <{foreach $cat_list as $k=>$v}>
                                            <option value="<{$v.cat_id}>"><{$v.cat_name|indent:$v.level:'&nbsp;&nbsp;'}></option>
                                            <{/foreach}>
                                        </select>
                                        <!--</div>-->
                                    </div>
                                </div>
                                <!-- end 问题标题 -->

                                <h3>问题描述</h3>
                                <div class="aw-mod aw-editor-box">
                                    <div class="mod-head">
                                        <textarea class="form-control" rows="10" name="question_desc"></textarea>
                                    </div>
                                </div>

                                <h3>最近话题:</h3>
                                <div class="aw-topic-bar">
                                    <{foreach $topics as $k=>$v}>
                                    <label>
                                        <input type="checkbox" name="topic_id[]"
                                               value="<{$v.topic_id}>"><{$v.topic_title}>
                                    </label>
                                    <br>
                                    <{/foreach}>

                                </div>
                            </div>
                            <div class="mod-footer clearfix">
								<span class="aw-anonymity">
																											<label><input type="checkbox" name="anonymous" value="1" class="pull-left">
										匿名</label>

								</span>
                                <!--<a onclick="AWS.ajax_post($('#question_form')); return false;" id="publish_submit" class="btn btn-large btn-success btn-publish-submit">确认发起</a>-->
                                <input type="submit" id="publish_submit" class="btn btn-large btn-success btn-publish-submit" value="确认发起">
                            </div>
                        </div>
                    </form>
                </div>
                <!-- 侧边栏 -->
                <div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
                    <!-- 问题发起指南 -->
                    <div class="aw-mod publish-help">
                        <div class="mod-head">
                            <h3>问题发起指南</h3>
                        </div>
                        <div class="mod-body">
                            <p><b>• 问题标题:</b> 请用准确的语言描述您发布的问题思想</p>
                            <p><b>• 问题补充:</b> 详细补充您的问题内容, 并提供一些相关的素材以供参与者更多的了解您所要问题的主题思想</p>
                            <p><b>• 选择话题:</b> 选择一个或者多个合适的话题, 让您发布的问题得到更多有相同兴趣的人参与. 所有人可以在您发布问题之后添加和编辑该问题所属的话题</p>
                        </div>
                    </div>
                    <!-- end 问题发起指南 -->
                </div>
                <!-- end 侧边栏 -->
            </div>
        </div>
    </div>
</div>
<{/block}>